package com.hu.zhcc.shiro.controller;

import com.hu.zhcc.shiro.entity.tj.TQuestionnaire;
import com.hu.zhcc.shiro.service.Tj_TQuestionnaireService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/tjtquestionnaire")
public class TjTquestionnaireController {
    @Autowired
    private Tj_TQuestionnaireService tj_tQuestionnaireService;
    @GetMapping("/{id}")
    public List<TQuestionnaire> queryAllById(@PathVariable("id")Integer id){
       return tj_tQuestionnaireService.queryAll(id);
    }
}
